package com.example.mapper;


import com.example.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    public List<User> findAll();
    void add(User user);
    void update(@Param("uname")String uname,@Param("sex") String sex,@Param("id")Integer id);
    void delete(int uid);
    List<User> findBll();

}
